import request from '@/utils/request';

import { OPS_URL, BASE_URL, OWNER_URL } from '@/config/query';

export async function queryPage(params = { pageSize: 10, pageNum: 0 }) {
  return request(`${OWNER_URL}/owner/page`, params)
}

export async function queryInfo() {
  return request(`${OWNER_URL}/owner/my/detail_info`)
}

export async function update(params) {
  return request(`${OWNER_URL}/owner/modify/new`, params)
}

export async function queryFirePage(params) {
  return request(`${BASE_URL}/owner_fire/summary/page`, params)
}

export async function queryPropertyPage(params) {
  return request(`${BASE_URL}/owner_property/page`, params)
}

export async function queryMaintenancePage(params) {
  return request(`${BASE_URL}/owner_maintenance/page`, params)
}

export async function queryRelationList(params) {  
  return request(`${OWNER_URL}/owner/relation/list`, params)
}

export async function queryOwnerList(params) {
  return request(`${OPS_URL}/user/sub_owner/list`, params)
}

